import datetime

from django import forms


class LoginForms(forms.Form):
    account = forms.CharField(required=True, max_length=255, min_length=1, error_messages={'required': u'用户名不能为空'})
    password = forms.CharField(required=True, max_length=255, min_length=3, error_messages={'required': u'密码不能为空'})
    ip_address = forms.CharField(required=True)
    ip_city = forms.CharField(required=True)


class PVForms(forms.Form):
    ip_address = forms.CharField(required=True)
    ip_city = forms.CharField(required=True)
    city_id = forms.CharField(required=True)

class PVActionForms(forms.Form):
    id = forms.IntegerField(required=True)
